<template>
	<view class="centent">
		<view class="user">
			<!-- <image class="user-img" src="../../static/login/login_logo.png"></image> -->
			<view class="user-title">
				<span class="user-name">同学</span>
			</view>
		</view>
		<view class="qrcode">
			<view>
				<view class="qrimg">
					<image src="" mode=""></image>
				</view>
			</view>

		</view>
		<view class="note">扫一扫微信扫一扫</view>
	</view>
</template>

<script>
	const Page = require('../../../utils/mtj-wx-sdk.js').Page;
	import tkiQrcode from "@/components/tki-qrcode/tki-qrcode.vue"
	export default {
		name: "showErweima",
		components: {
			tkiQrcode
		},


		data() {
			return {
				token: "",
				uuid: "",
				guid: "",
				ImDeviceNumber: "",
				qrCode: "",
				val: '',
				size: 500,
				background: '#ffffff',
				foreground: '#000000',
				pdground: '#000000',
				iconsize: 30,
				lv: 3,
				onval: true,
				unit: 'upx',
				loadMake: true,
				src: '',
				showLoading: true,
				loadingText: '二维码生成中'

			}
		},
		onLoad() {
			uni.getStorage({
				key: 'idInfo',
				success: res => {
					var data = res.data;
					this.uuid = data.uuid;
					this.guid = data.guid;
				}
			});
			uni.getStorage({
				key: 'user',
				success: res => {
					var data = res.data;
					this.token = data.token;
				}
			});
			this.code();


			this.val = this.qrCode;


		},
		methods: {

			code() {},
			qrR() {
				console.log(1)
			},
		}
	}
</script>

</script>

<style>
	page {
		width: 100%;
		height: 100%;
		background: #EDEDED;
	}

	.centent {
		width: 90%;
		margin: 80px auto;
		flex-direction: column;
		background: #FFFFFF;
		border-radius: 7px;
	}

	.user {
		width: 100%;
		margin: 10px auto;
		box-sizing: border-box;
		color: #000000;
		flex-direction: row;
		align-items: center;
		display: flex;

	}

	.user-img {
		width: 100upx;
		height: 100upx;
		border-radius: 10upx;
		padding: 10px 0 10px 20px;
	}

	.user-title {
		height: 150upx;
		flex: 1;
		align-items: center;
		justify-content: space-between;
		flex-direction: row;
		margin-left: 20upx;
	}

	.user-name {
		height: 100upx;
		line-height: 140upx;
		font-size: 32upx;
		color: #000000;
		display: block;
	}

	.qrcode {
		width: 70%;
		margin: 0 auto;
	}

	uni-image {
		width: 100%;
		/* height: 100%; */
	}

	.note {
		width: 100%;
		margin: 0 auto;
		padding: 10px 0;
		font-size: 12px;
		font-family: PingFang SC;
		font-weight: 400;
		line-height: 51px;
		color: rgba(144, 144, 144, 1);
		letter-spacing: 1px;
		opacity: 1;
		text-align: center;
	}

	canvas {
		height: 370px;
		width: 370px;
	}
</style>
